﻿using System;
using System.Data.Linq.Mapping;
namespace Tour.Linq.Model
{
    /// <summary>
    /// 实体类Users 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Table]
    public class Admin
    {

        /// <summary>
        /// 用户ID
        /// </summary>
        [Column(IsPrimaryKey = true, IsDbGenerated = true)]
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        /// 用户名
        /// </summary>
        [Column]
        public string UserName
        {
            get;
            set;
        }
        /// <summary>
        /// 用户密码
        /// </summary>
        [Column]
        public string Password
        {
            get;
            set;
        }
       
        /// <summary>
        /// 注册时间
        /// </summary>
        [Column (IsDbGenerated=true)]
        public DateTime AddTime
        {
            get;
            set;
        }


    }
}

